﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
//using System.Linq;
using System.ServiceProcess;
using System.Text;

namespace SmsSyncService
{
    public partial class SmsSyncService : ServiceBase
    {
        private SmsSyncTask task;
        public SmsSyncService()
        {
            task = new SmsSyncTask();
            InitializeComponent();
        }

        public void Start()
        {
            OnStart(null);
        }


        protected override void OnStart(string[] args)
        {
            task.Start();
        }

        protected override void OnStop()
        {
            task.End();
        }
    }
}
